<?php
/**
 * Created by PhpStorm.
 * User: zhongyb
 * Date: 2016/6/6
 * Time: 10:58
 */

namespace common\entities\common;

use Yii;
use common\entities\ConfigEntity;

/**
 * This is the model class for table "myscrm_erpauthenticationinfotemplate".
 *
 * @property string $AuthenticationInfoTemplateId
 * @property string $encrypt_servurl
 * @property string $encrypt_username
 * @property string $encrypt_pwd
 * @property boolean $encrypt_ishttps
 * @property string $AuthName
 * @property integer $InitOnOrgCreated
 */
class MyscrmErpauthenticationinfotemplateEntity extends ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_erpauthenticationinfotemplate';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['AuthenticationInfoTemplateId'], 'required'],
            [['encrypt_ishttps'], 'boolean'],
            [['InitOnOrgCreated'], 'integer'],
            [['AuthenticationInfoTemplateId'], 'string', 'max' => 36],
            [['encrypt_servurl'], 'string', 'max' => 4000],
            [['encrypt_username', 'encrypt_pwd', 'AuthName'], 'string', 'max' => 100]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'AuthenticationInfoTemplateId' => 'Authentication Info Template ID',
            'encrypt_servurl' => 'Encrypt Servurl',
            'encrypt_username' => 'Encrypt Username',
            'encrypt_pwd' => 'Encrypt Pwd',
            'encrypt_ishttps' => 'Encrypt Ishttps',
            'AuthName' => 'Auth Name',
            'InitOnOrgCreated' => 'Init On Org Created',
        ];
    }
}